"""
1.求解1—100和
2.求解 1-100 奇数和
"""

# 求解1—100和
i = 1
sum1 = 0
while i <= 100:
    sum1 += i
    i += 1
print(sum1)

# 求解 1-100 奇数和
j = 1
sum2 = 0
while j <= 100:
    sum2 += j
    j += 2
print(sum2)








